package com.zkld.frame.dto;

import java.io.Serializable;


/**
 * @param <T> 传递数据实体类
 */
public class ResponseDTO<T> implements Serializable {

    //返回消息
    private String message;
    //返回数据
    private T data;
    //相应时间
    private String responseTime;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    @Override
    public String toString() {
        return "ResponseDTO{" +
                "message='" + message + '\'' +
                ", data=" + data +
                ", responseTime='" + responseTime + '\'' +
                '}';
    }
}
